﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Knihotoc_WP8.Settings;

namespace Knihotoc_WP8.Pages
{
    public partial class CommonPlaceDetailPage : PhoneApplicationPage
    {
        public CommonPlaceDetailPage()
        {
            this.InitializeComponent();
        }

        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (NavigationContext.QueryString.ContainsKey("PlaceID"))
            {
            }

            (ApplicationBar.Buttons[0] as ApplicationBarIconButton).Text = Localization.LocalizedStrings.Get("ShowOnMapButton");
        }

        private void LogoImage_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
        }

        private void ShowOnMapButton_Click(object sender, EventArgs e)
        {
            //NavigationService.Navigate(new Uri(String.Format("/Pages/MapPage.xaml?Latitude={0}&Longitude={1}", place.Lat.ToString(), place.Lon.ToString()), UriKind.Relative));
        }
    }
}